#ifndef __script_getholes__
#define __script_getholes__
if(token.Matches(_("s_getholes"))&&(T.GetCount()==2))
{
    IsNotExtFunc = false;

    uint i = uint(calc(T[0]));
    double size = calc(T[1]);

    mPointArray P;

    for(uint a=0; a<I[i].ME.size(); a++)
    {
        if(AER(I[i].ME[a]->r,size,0.001) && I[i].ME[a]->T()==4)
            P.Add(I[i].ME[a]->cp(),true);
    }

    //std::cout << dta.Item(0).ToAscii() << T.P.Size() << "\n";
    if(P.size()==0)
    {
        CODE << wxT("(NO HOLES FOUND)\n");
        break;
    }

    P.GetShortestPath();
    for(uint a=0; a<P.size(); a++)
        CODE << wxString::Format(wxT("X%1.3fY%1.3f\n"),P.at(a).x,P.at(a).y);

    continue;
}
#else
INFO << _("s_getholes(i,r)<BR>");
if(token.Matches(_("s_getholes(*,*)")))
{
    INFO = _("<b>s_getholes</b>(i,r)<BR><BR>");
    INFO << _("i = image<BR>");
    INFO << _("r = hole radius<BR>");

    INFO << _("<b>description:</b><BR>");
    INFO << _("get holes from image<BR>");
    INFO << _("<BR>");
    return true;
}
#endif
